package com.yanqu.road.entity.activity.zhenhuan;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@FieldTypeAnnotation(tableName = "t_u_activity_worship", desc = "活动点赞膜拜记录")
public class UserActivityWorshipData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(desc = "是否点赞")
    private int isWorship;
    @FieldTypeAnnotation(desc = "点赞时间")
    private long worshipTime;


    public UserActivityWorshipData() {
    }

    public UserActivityWorshipData(int activityId, long userId) {
        this.activityId = activityId;
        this.userId = userId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getIsWorship() {
        return isWorship;
    }

    public void setIsWorship(int isWorship) {
        this.isWorship = isWorship;
        setUpdateOption();
    }

    public long getWorshipTime() {
        return worshipTime;
    }

    public void setWorshipTime(long worshipTime) {
        this.worshipTime = worshipTime;
        setUpdateOption();
    }
}
